package com.yuanfeng.userms.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yuanfeng.commoms.util.ResponseResult;
import com.yuanfeng.userms.entity.UserPlusEquityTempEntity;
import com.yuanfeng.userms.mapper.UserPlusEquityTempMapper;
import com.yuanfeng.userms.service.UserPlusEquityTempService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 *
 */
@Service
public class UserPlusEquityTempServiceImpl extends ServiceImpl<UserPlusEquityTempMapper, UserPlusEquityTempEntity>
    implements UserPlusEquityTempService{


    @Override
    public ResponseResult selectPlusEquityTemps(List<Integer> id) {
        List<UserPlusEquityTempEntity> list=this.baseMapper.selectList(new LambdaQueryWrapper<UserPlusEquityTempEntity>()
                .eq(UserPlusEquityTempEntity::getEquityStatus,1)
                .in(UserPlusEquityTempEntity::getEquityId,id));
        return ResponseResult.success(list);
    }
}




